package cn.alm.xccontent.common;

import lombok.Data;

@Data
public class CommonResult {

    private Boolean success;
    private String message;
    private Object data;

    public void ok(Object data) {
        this.success = true;
        this.message = "请求成功";
        this.data = data;
    }

    public void fail() {
        this.success = false;
        this.message = "请求失败";
    }

}
